package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.AppointmentDao;
import com.aaa.hospital.ManagementEnd.pojo.Appointment;
import com.aaa.hospital.ManagementEnd.service.AppointmentService;
import com.aaa.hospital.ManagementEnd.util.AppointmentDB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AppointmentServiceImpl implements AppointmentService {


    @Autowired
private AppointmentDao appointmentMapper;


    @Override
    public AppointmentDB byVisId(Integer visid) {
        return appointmentMapper.byVisId(visid);
    }


    @Override
    public boolean insert(Appointment appointment) {
        return appointmentMapper.insert(appointment);
    }
}
